package com.imis.base.constant;

import com.baomidou.mybatisplus.core.toolkit.Constants;

/**
 * <p>
 * DataBaseConstant<br>
 * 数据库上下文常量
 * </p>
 *
 * @author XinLau
 * @since 2020-03-12
 */
public interface DataBaseConstant extends Constants {
    /**
     * 数据源名称 - master
     */
    String DATA_SOURCE_MASTER = "master";
    /**
     * 数据源名称 - record
     */
    String DATA_SOURCE_RECORD = "record";
    /**
     * 数据源名称 - business
     */
    String DATA_SOURCE_BUSINESS = "business";

    /**
     * 数据库类型
     */
    String DB_TYPE_MYSQL = "MYSQL";
    String MYSQL = "mysql";
    String DB_TYPE_ORACLE = "ORACLE";
    String ORACLE = "oracle";
    String DB_TYPE_POSTGRE_SQL = "POSTGRESQL";
    String POSTGRE_SQL = "postgresql";
    String DB_TYPE_SQL_SERVER = "SQLSERVER";
    String SQLSERVER = "sqlserver";
    String SQL_SERVER = "sql server";

    //*********系统建表标准字段****************************************

    /**
     * 创建者登录名称
     */
    String CREATE_BY_TABLE = "create_by";
    /**
     * 创建者登录名称
     */
    String CREATE_BY = "createBy";
    /**
     * 创建日期时间
     */
    String CREATE_TIME_TABLE = "create_time";
    /**
     * 创建日期时间
     */
    String CREATE_TIME = "createTime";
    /**
     * 更新用户登录名称
     */
    String UPDATE_BY_TABLE = "update_by";
    /**
     * 更新用户登录名称
     */
    String UPDATE_BY = "updateBy";
    /**
     * 更新日期时间
     */
    String UPDATE_TIME_TABLE = "update_time";
    /**
     * 更新日期时间
     */
    String UPDATE_TIME = "updateTime";

    //*********系统建表字段类型****************************************

    String BIG_DECIMAL = "BigDecimal";
    String BIG_DECIMAL_ = "bigdecimal";
    String DECIMAL = "decimal";

    String BLOB = "Blob";
    String BLOB_ = "blob";

    String DATE = "Date";
    String DATE_ = "date";

    String DATE_TIME = "Datetime";
    String DATE_TIME_ = "datetime";

    String DOUBLE = "double";

    String INT = "int";

    String NUMBER = "number";

    String STRING = "string";

    String TEXT = "Text";
    String TEXT_ = "text";

    String TEXTAREA = "textarea";

    String VARCHAR = "varchar";

    /**
     * 强制同步
     */
    String FORCE_SYNCHRONIZATION = "force";
    /**
     * 正常同步
     */
    String NORMAL_SYNCHRONIZATION = "normal";

}
